﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
    public class Base
    {
        public Base()
        {
            this.UserID = Guid.NewGuid();
            this.Islock = false;
            this.Isdelete = false;
            this.Creattime = DateTime.Now;
        }

        /// <summary>
        /// 自增ID
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int AUTOID { get; set; }
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        [Column("P01")]
        public Guid UserID { get; set; }

        /// <summary>
        /// 是否被锁定
        /// </summary>
        [Column("P02")]
        public bool Islock { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [Column("P03")]
        public Boolean Isdelete { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("P04")]
        public DateTime Creattime{ get; set; }

        /// <summary>
        /// 年龄
        /// </summary>
        [Column("P05")]
        public int Age { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [Column("P06")]
        public string? Gender { get; set; }
    }
}
